package chapter13 ;

public class Circle extends GeometricObject {
  private String name;
  private int age;

  public Circle() {
  }

  public Circle(String name,int age) {
    this.name = name;
    this.age = age;
  }

  /** Return radius */
  public String getName() {
    return name;
  }

  /** Set a new radius */
  public void setName(String name) {
    this.name = name;
  }

  public int getAge() {
    return age;
  }

  /** Set a new radius */
  public void setAge(int age) {
    this.age = age;
  }



  /** Return diameter */
  public double getDiameter() {
    return 2 * age;
  }

  /* Print the circle info */
  public void printCircle() {
    System.out.println("The circle is created " + getDateCreated() +
      " and the radius is " + age);
  }
}
